home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / fcfgw40s.zip / FILEAREA.H < prev    next >
C/C++ Source or Header  |  1996-08-13  |  3KB  |  95 lines

  1. // FileArea.h : header file
  2. //
  3. #include "proboard.h"
  4. #include "progdlg.h"
  5. #include "areatools.h"
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CFileArea dialog
  9.  
  10. class CFileArea : public CDialog
  11. {
  12. // Construction
  13. public:
  14.     CFileArea(CWnd* pParent = NULL);   // standard constructor
  15.  
  16. // Dialog Data
  17.     //{{AFX_DATA(CFileArea)
  18.     enum { IDD = IDD_DIALOG_FILE_AREAS };
  19.     CListBox    m_ListBox;
  20.     //}}AFX_DATA
  21.  
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CFileArea)
  26.     protected:
  27.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. protected:
  32.  
  33.     // ProBoard system directory
  34.     char m_SysPath[_MAX_PATH];
  35.     // the string to show if there's no area name
  36.     static char *m_NoText;
  37.     // data has not been saved flag
  38.     BOOL shouldSave;
  39.     // do we have an initialized find dialog
  40.     BOOL m_FindDlgInited;
  41.     // the current index of the match
  42.     int m_FindIndex;
  43.     // the toolbar for the list box
  44.     CAreaTools m_ToolBar;
  45.     // the anchor for the group move
  46.     int m_AnchorIndex;
  47.     // the title string for the message boxes
  48.     CString m_Title;
  49.     
  50.     BOOL LoadData();
  51.     BOOL SaveData();
  52.     void SetNumberData();
  53.     void OnCancel();    // override the default
  54.     void MoveSorted(BOOL ascending);
  55.     
  56.     // Generated message map functions
  57.     //{{AFX_MSG(CFileArea)
  58.     afx_msg void OnMenuHelpAbout();
  59.     afx_msg void OnMenuExit();
  60.     afx_msg LONG OnFindCall(WPARAM, LPARAM);
  61.     virtual BOOL OnInitDialog();
  62.     afx_msg void OnMenuLoad();
  63.     afx_msg void OnMenuSelectAll();
  64.     afx_msg void OnMenuUnselect();
  65.     afx_msg void OnMenuSwap();
  66.     afx_msg void OnMenuSave();
  67.     afx_msg void OnMenuClear();
  68.     afx_msg void OnMenuPack();
  69.     afx_msg void OnMenuDelete();
  70.     afx_msg void OnMenuInsert();
  71.     afx_msg void OnMenuClone();
  72.     afx_msg void OnMenuStardate();
  73.     afx_msg void OnSelchangeListFileAreas();
  74.     afx_msg void OnButtonMoveDown();
  75.     afx_msg void OnButtonMoveUp();
  76.     afx_msg void OnButtonFind();
  77.     afx_msg int OnVKeyToItem(UINT nKey, CListBox* pListBox, UINT nIndex);
  78.     afx_msg void OnMenuEdit();
  79.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  80.     afx_msg void OnMenuSelectbyGroup();
  81.     afx_msg void OnMenuSelectbyLevel();
  82.     afx_msg void OnMenuTipOfDay();
  83.     afx_msg void OnMenuSelectbyType();
  84.     afx_msg void OnButtonGlobal();
  85.     afx_msg void OnButtonMoveSelected();
  86.     afx_msg void OnButtonSortSelected();
  87.     afx_msg void OnMenuSortAscending();
  88.     afx_msg void OnMenuSortDescending();
  89.     //}}AFX_MSG
  90.     DECLARE_MESSAGE_MAP()
  91. };
  92.  
  93. static UINT WM_FIND = ::RegisterWindowMessage(FINDMSGSTRING);
  94.  
  95.